import vue from 'vue'
import vueRouter from 'vue-router'
import home from '../components/home.vue'
import newslist from '../components/news/newslist.vue'
import newsinfo from '../components/news/newsinfo.vue'
import photolist from '../components/photo/photolist.vue'
import photoinfo from '../components/photo/photoinfo.vue'
vue.use(vueRouter);
export default new vueRouter({
    linkActiveClass:'mui-active',
    routes:[
         {path:'*',redirect:'/home'},
         {path:'/',redirect:'/home'},
         {path:'/home',component:home},
         {path:'/news/newslist',component:newslist},
         {path:'/news/newsinfo/:id',component:newsinfo},
         {path:'/photo/photolist',component:photolist},
         {path:'/photo/photoinfo/:id',component:photoinfo},
    ]
})